gtk: Fix crasher when loading symbolic icons
authorBastien Nocera <hadess@hadess.net>
Wed, 27 Oct 2010 16:47:08 +0000 (17:47 +0100)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Sat, 30 Oct 2010 08:35:20 +0000 (17:35 +0900)
commit2a37d949baff1557f161ee1baed5b632b1487489
treeaeafaae301bcf26280ffeea73bd882918bf49c6e
parentd8fdbd8b72adc3aa119890aeb6ba17766e0094b6
gtk: Fix crasher when loading symbolic icons

If the style didn't include symbolic colors for either success,
warning or error, gtk_icon_info_load_symbolic_for_style() would crash.

Instead, make sure we don't try to use the colors if they're not
available, and fallback on default colors inside
_gtk_icon_info_load_symbolic_internal().
gtk/gtkicontheme.c